package fun.boomcat.luckyhe.mirai.plugin.luckymoney.exception;

/**
 * @author Lucky_He
 * @date 2021年9月5日 15:58
 * @description MoneyNotEnoughException
 */
public class MoneyNotEnoughException extends Exception{
    private int currentMoney, operationMoney;

    public MoneyNotEnoughException(int currentMoney, int operationMoney) {
        this.currentMoney = currentMoney;
        this.operationMoney = operationMoney;
    }

    @Override
    public String toString() {
        return "当前余额为" + currentMoney + "，但操作余额为" + operationMoney;
    }
}
